

function box_add_art(unit,card)
    local panel = class.panel:builder
    {
        w = 300,
        h = 64,
        show_flag = false,
        world_auto_remove = false,
        parent = class.ui_base.portrait,
        --normal_image = card.art,
        --world_anchor = 'top',
    }
    unit:set_texture(card.art,0)
    panel.title = panel:add_text(card.name,0,0,nil,30,12,5)
    panel:bind_world(unit)
    japi.SetUnitPressUIVisible(unit.handle,false)


    return panel
end
